import {
  request
} from '../helpers.js';

export const login = function(username, password, remember) {
  return request({
    url: '/login',
    method: 'post',
    data: {
      email: username,
      password: password,
      remember: remember
    }
  });
}

export const logout = function() {
  return request({
    url: '/logout',
    method: 'post'
  });
}
